package com.bdzl.biz.servicefeign;

import com.bdzl.biz.common.config.FeignConfig;
import com.bdzl.pub.config.Constant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name="loanAuth", configuration = FeignConfig.class,contextId = "AuthFeignService",url = Constant.sys+":8002")
public interface AuthFeignService {
    /**
     * @Description: TODO 验证手机验证码
     * @param conMobile 手机号
     * @param verificationCode 验证码
     * @return: java.lang.Object
     * @Author: Ming
     * @Date: 2021/5/17 10:43
     */
    @PostMapping(value = "/bdzl/logins/checkPhoneCode")
    Object checkPhoneCode(@RequestParam("conMobile") String conMobile,@RequestParam("verificationCode") String verificationCode);
    /**
    * @Description: TODO 根据用户id获取用户数据
    * @param userId
    * @return: java.lang.Object
    * @Author: Ming
    * @Date: 2021/5/19 19:07
    */
    @PostMapping(value = "/bdzl/user/getUserById")
    Object getUserById(@RequestParam("userId") Integer userId);

    /**
     * @Description: TODO 根据token获取用户信息
     * @param token
     * @return: java.lang.Object
     * @Author: Ming
     * @Date: 2021/5/19 19:07
     */
    @PostMapping(value = "/bdzl/user/getUser")
    Object getUser(@RequestParam("token") String token);
}
